package com.hzdl.cinema.dao;

import com.hzdl.cinema.domain.User;

import java.util.List;

public interface UserDao {


    void save(User user);


    User finfByUser(String userName);


    User login(User user);

    User updateUser(String userName);

    void updateSave(User user);


    List<User> findAll();

    User findUserById(int userId);


    void update_users(int userId, String userName, String userPassword, String userEmail);

    User findUser(String userName);

    User findByName(String userName);


    void addUser(String userName, String userPassword, String userEmail, Integer userStatus);


    void selectUserById(int user);

    User searchUserByName(String userName);
}
